<template>
  <div class="mine-page">
    <div class="cancel">
      <i class="iconfont icon-chahao" @click="goToHome"></i>
    </div>
    <div class="login-form">
      <div class="logo">
        <img
          src="https://x.dscmall.cn/storage/images/wap_logo.jpg?4RugNq"
          class="img"
        />
      </div>
      <div class="input-box1">
        <div class="left">
          <i class="iconfont icon-profile"></i>
          <input
            type="text"
            name=""
            value=""
            placeholder="请输入您的用户名/手机号"
          />
        </div>
      </div>
      <div class="input-box2">
        <div class="left">
          <i class="iconfont icon-daifukuan"></i>
          <input type="text" name="" value="" placeholder="请输入您的密码" />
        </div>
        <div class="right">
          <i class="iconfont icon-yincang"></i>
          <span>忘记密码</span>
        </div>
      </div>
      <div class="agree">
        <input type="radio" />
        <span>我已阅读并同意 <i>《隐私声明》</i> </span>
      </div>
      <div class="account">账号密码登录</div>
      <div class="sms">短信快捷登录</div>
      <div class="resgister">
        还没有账号?
        <span @click="goToRegister">立即去注册</span>
      </div>
      <div class="other">
        <p>
          <span>其他登录方式</span>
        </p>
        <div class="qq">
          <img src="../../images/2.png" alt="" />
        </div>
      </div>
    </div>
  </div>
</template>

<script>
//这里可以导入其他文件（比如：组件，工具js，第三方插件js，json文件，图片文件等等）
//例如：import 《组件名称》 from '《组件路径》';

export default {
  //import引入的组件需要注入到对象中才能使用
  components: {},
  data() {
    //这里存放数据
    return {};
  },
  //监听属性 类似于data概念
  computed: {},
  //监控data中的数据变化
  watch: {},
  //方法集合
  methods: {
    goToHome(){
      this.$router.push({path:'./homepage'})
    },
    goToRegister(){
      this.$router.push({path:'./register'})
    }
  },
  beforeCreate() {}, //生命周期 - 创建之前
  //生命周期 - 创建完成（可以访问当前this实例）
  created() {},
  beforeMount() {}, //生命周期 - 挂载之前
  //生命周期 - 挂载完成（可以访问DOM元素）
  mounted() {},
  beforeUpdate() {}, //生命周期 - 更新之前
  updated() {}, //生命周期 - 更新之后
  beforeDestroy() {}, //生命周期 - 销毁之前
  destroyed() {}, //生命周期 - 销毁完成
  activated() {}, //如果页面有keep-alive缓存功能，这个函数会触发
};
</script>
<style lang="less" scoped>
.mine-page {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  background-color: #fff;
  width: 100%;
  height: 100vh;
  .cancel {
    position: absolute;
    left: 2rem;
    top: 2.5%;
    i {
      color: #666;
      font-size: 2.2rem;
    }
  }
  .logo {
    width: 8rem;
    height: 8rem;
    overflow: hidden;
    border-radius: 50%;
    display: block;
    margin: 15% auto;
    img {
      width: 100%;
      height: auto;
    }
  }
  .input-box1 {
    width: calc(100% - 2rem);
    text-align: center;
    margin: 2rem;
    .left {
      width: 90%;
      border-bottom: 1px solid #ccc;
      i {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 2rem;
        margin-right: 1rem;
        margin-bottom: 1rem;
      }
      input {
        width: 80%;
        margin-bottom: 1rem;
      }
    }
  }
  .input-box2 {
    display: flex;
    width: calc(100% - 2rem);
    text-align: center;
    margin: 2rem;
    position: relative;
    .left {
      width: 90%;
      border-bottom: 1px solid #ccc;
      i {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 2rem;
        margin-right: 1rem;
        margin-bottom: 1rem;
      }
      input {
        width: 80%;
        margin-bottom: 1rem;
      }
    }
    .right {
      display: flex;
      align-items: center;
      position: absolute;
      right: 4rem;
      span {
        text-indent: 1rem;
        margin-left: 1rem;
        border-left: 1px solid #97d0ff;
      }
    }
  }
  .agree {
    margin-left: 2rem;
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    span {
      margin-left: 1rem;
    }
    i{
      color: #97d0ff;
    }
  }
  .account,
  .sms {
    height: 40px;
    padding: 0;
    border-radius: 2rem;
    line-height: 4rem;
    font-size: 1.4rem;
    text-align: center;
    width: 80%;
    margin-top: 2rem;
    margin-left: 10%;
  }
  .account {
    color: #fff;
    opacity: 0.4;
    background: linear-gradient(-88deg, #ff4f2e, #f91f28);
  }
  .sms {
    border: 1px solid red;
    color: red;
  }
  .resgister {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    span {
      color: red;
    }
  }
  .other {
    text-align: center;
    margin-top: 10rem;
    color: gray;
    img {
      width: 4rem;
      height: 4rem;
      margin-top: 2rem;
    }
    p {
      position: relative;
      span {
        background: #fff;
        position: relative;
        z-index: 1;
      }
      &::after {
        content: "";
        position: absolute;
        z-index: 1;
        pointer-events: none;
        background-color: #f1f1f1;
        height: 1px;
        left: 0;
        right: 0;
        top: 50%;
        z-index: 0;
      }
    }
  }
}
</style>